object Practise2 {
  def huiwen(s:String):Boolean =(
    s == s.reverse
  )

  def main(args: Array[String]): Unit = {
    val s = "acbbca"
    if (huiwen(s)) {
      println(s"$s 是回文")
    } else {
      println(s"$s 不是回文")
    }
  }
}